package cn.itcast.tlias.com.tliaswork.service.impl;

import cn.itcast.tlias.com.tliaswork.mapper.LogMapper;
import cn.itcast.tlias.com.tliaswork.pojo.DeptLog;
import cn.itcast.tlias.com.tliaswork.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

@Service
public class LogServiceImp implements LogService {

    @Autowired(required = false)
    private LogMapper mapper;

    @Transactional(propagation = Propagation.REQUIRES_NEW)
    @Override
    public void insert(DeptLog deptLog) {
        mapper.insert(deptLog);
    }
}
